import request from '@/utils/request'

// 查询Youtobe热播视频列表
export function listCount(query) {
  return request({
    url: '/youtobe/count/list',
    method: 'get',
    params: query
  })
}

// 查询Youtobe热播视频详细
export function getCount(id) {
  return request({
    url: '/youtobe/count/' + id,
    method: 'get'
  })
}

// 新增Youtobe热播视频
export function addCount(data) {
  return request({
    url: '/youtobe/count',
    method: 'post',
    data: data
  })
}

// 修改Youtobe热播视频
export function updateCount(data) {
  return request({
    url: '/youtobe/count',
    method: 'put',
    data: data
  })
}

// 删除Youtobe热播视频
export function delCount(id) {
  return request({
    url: '/youtobe/count/' + id,
    method: 'delete'
  })
}

// 获取频道列表
export function getChannelAllList() {
  return request({
    url: '/youtobe/channel/allList',
    method: 'get',
    params: {
      sourc: 'FOLLOW'
    }
  })
}

// 新增Youtobe热播视频
export function updateViewCount() {
  return request({
    url: '/youtube/video/updateViewCount',
    method: 'post',
    // data: data
  })
}
